package library.http;

/**
 * Created by Mr.Fan on 2016-5-26.
 */
abstract class Callback<T> {

    protected abstract void onStart();

    protected abstract void onFinish();

    protected abstract void onCancel();

    protected abstract void onTimeout(Exception e);

    protected abstract void onFailure(Exception e);

    protected abstract void onSuccess(T data);

}
